home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / CDEF Source / MPW / Makefile < prev    next >
Encoding:
Makefile  |  1995-06-18  |  21.8 KB  |  513 lines  |  [TEXT/MPS ]

  1. # ==============================================================================
  2. #
  3. #    Makefile
  4. #
  5. #                makefile for MPW versions of Jim's CDEFs
  6. #                
  7. #                Note that this does not build the popupMenu CDEF.  It uses
  8. #                a global variable and I haven't taken the time to figure out
  9. #                how to use globals in an MPW code resource.
  10. # ------------------------------------------------------------------------------
  11. #                  1995 Jim Stout with thanks to Troy Gaul
  12. # ------------------------------------------------------------------------------
  13. #   File:        Makefile
  14. #   Targets:    cdefMPW
  15. #                  cdefMPW/FAT
  16. #   Sources:    cdef3D.c, cdefBar.c, cdefDtc.c, cdefGBox.c, cdefHSlider.c,
  17. #                cdefSlider.c, cdefSpinner.c, cdefTab.c, cdefTog.c, cdefVSlider.c
  18. #               colorCDEF.c
  19. #               miscCDEF.c
  20. #                grayCDEF.c
  21. #                qdCDEF.c
  22. # ==============================================================================
  23.  
  24. Output        =    cdefMPW
  25. PPCOut        =    cdefMPW/FAT
  26.  
  27. OutRsrc        =    cdefMPW.temp    # intermediate file for Fat build
  28.  
  29.  
  30. # ==============================================================================
  31. #    Types and IDs
  32. # ------------------------------------------------------------------------------
  33. Type        =    rsrc
  34. Creator        =    RSED
  35. ResType        =    CDEF
  36. 68KType        =    oCod
  37.  
  38.  
  39. # ==============================================================================
  40. #    Directories
  41. # ------------------------------------------------------------------------------
  42. PefDir        =    :cdefMPW ƒ:pef:
  43. XcoffDir    =    :cdefMPW ƒ:xcoff:
  44. ObjDir        =    :cdefMPW ƒ:objects:
  45.  
  46. {ObjDir}    ƒ    :                # directory dependency
  47.  
  48. SrceDir        =    :source:
  49.  
  50. {SrceDir}    ƒ    :
  51.  
  52. # ==============================================================================
  53. #    68K Options/Libs
  54. # ------------------------------------------------------------------------------
  55. 68KC        =    C                # Can be changed to use a different MPW-hosted
  56.                                 # compiler.
  57.  
  58. 68KCOptions    =   -w                # no warnings                                 ∂
  59.                 -b                # PC-relative strings                        ∂
  60.                 -mbg off         # off, full                                    ∂
  61.                 -opt full        # off, (empty)=normal, full, size, speed    ∂
  62.                 -o "{ObjDir}"
  63.                 
  64. 68KLinkLibs    =    "{Libraries}"Runtime.o                                         ∂
  65.                 "{Libraries}"Interface.o                                     ∂
  66.  
  67. # ==============================================================================
  68. #    PowerPC Options/Libs
  69. # ------------------------------------------------------------------------------
  70. PPCC        =    PPCC            # Can be changed to use a different MPW-hosted
  71.                                 # PowerPC compiler.
  72.  
  73. PPCCOptions    =    -w conformance -appleext on
  74.  
  75. PPCPefLibs    =    -l InterfaceLib.xcoff=InterfaceLib                            ∂
  76.                 -l StdCLib.xcoff=StdCLib                                    ∂
  77.                 -l MathLib.xcoff=MathLib
  78.  
  79. PPCLinkLibs    =    "{PPCLibraries}"InterfaceLib.xcoff                             ∂
  80.                 "{PPCLibraries}"StdCLib.xcoff                                 ∂
  81.                 "{PPCLibraries}"StdCRuntime.o                                 ∂
  82.                 "{PPCLibraries}"PPCCRuntime.o
  83.  
  84.  
  85. # ==============================================================================
  86. #    Object Files
  87. # ------------------------------------------------------------------------------
  88. 68KObjects    =    "{ObjDir}"cdef3D.c.o                                        ∂
  89.                 "{ObjDir}"cdefBar.c.o                                        ∂
  90.                 "{ObjDir}"cdefDtc.c.o                                        ∂
  91.                 "{ObjDir}"cdefGBox.c.o                                        ∂
  92.                 "{ObjDir}"cdefHSlider.c.o                                    ∂
  93.                 "{ObjDir}"cdefSlider.c.o                                    ∂
  94.                 "{ObjDir}"cdefSpinner.c.o                                    ∂
  95.                 "{ObjDir}"cdefTab.c.o                                        ∂
  96.                 "{ObjDir}"cdefTog.c.o                                        ∂
  97.                 "{ObjDir}"cdefVSlider.c.o
  98.                 
  99. 68KUtils    =    "{ObjDir}"colorCDEF.c.o                                        ∂
  100.                 "{ObjDir}"grayCDEF.c.o                                        ∂
  101.                 "{ObjDir}"miscCDEF.c.o                                        ∂
  102.                 "{ObjDir}"qdCDEF.c.o
  103.                 
  104. 68KUtils3    =    "{ObjDir}"colorCDEF.c.o                                        ∂
  105.                 "{ObjDir}"grayCDEF.c.o                                        ∂
  106.                 "{ObjDir}"miscCDEF.c.o
  107.                 
  108. 68KUtils2    =    "{ObjDir}"colorCDEF.c.o                                        ∂
  109.                 "{ObjDir}"miscCDEF.c.o
  110.                 
  111. PPCObjects    =    "{ObjDir}"cdef3D.o                                            ∂
  112.                 "{ObjDir}"cdefBar.o                                            ∂
  113.                 "{ObjDir}"cdefDtc.o                                            ∂
  114.                 "{ObjDir}"cdefGBox.o                                        ∂
  115.                 "{ObjDir}"cdefHSlider.o                                        ∂
  116.                 "{ObjDir}"cdefSlider.o                                        ∂
  117.                 "{ObjDir}"cdefSpinner.o                                        ∂
  118.                 "{ObjDir}"cdefTab.o                                            ∂
  119.                 "{ObjDir}"cdefTog.o                                            ∂
  120.                 "{ObjDir}"cdefVSlider.o
  121.  
  122. PPCUtils    =    "{ObjDir}"colorCDEF.o                                        ∂
  123.                 "{ObjDir}"grayCDEF.o                                        ∂
  124.                 "{ObjDir}"miscCDEF.o                                        ∂
  125.                 "{ObjDir}"qdCDEF.o
  126.  
  127. PPCUtils3    =    "{ObjDir}"colorCDEF.o                                        ∂
  128.                 "{ObjDir}"grayCDEF.o                                        ∂
  129.                 "{ObjDir}"miscCDEF.o
  130.  
  131. PPCUtils2    =    "{ObjDir}"colorCDEF.o                                        ∂
  132.                 "{ObjDir}"miscCDEF.o
  133.                             
  134. # ==============================================================================
  135. #    Headers
  136. # ------------------------------------------------------------------------------
  137. AllHeaders    =     "{SrceDir}"cdef3D.h                                            ∂
  138.                 "{SrceDir}"colorCDEF.h                                        ∂
  139.                 "{SrceDir}"grayCDEF.h                                        ∂
  140.                 "{SrceDir}"miscCDEF.h                                        ∂
  141.                 "{SrceDir}"qdCDEF.h
  142.  
  143.  
  144. # ==============================================================================
  145. #    68K Compilation
  146. # ------------------------------------------------------------------------------
  147. "{ObjDir}"cdef3D.c.o            ƒ    "{SrceDir}"cdef3D.c                        ∂
  148.                                     {AllHeaders}
  149.     {68KC} {68KCOptions} "{SrceDir}"cdef3D.c
  150.  
  151. # ------------------------------------------------------------------------------
  152. "{ObjDir}"cdefBar.c.o            ƒ    "{SrceDir}"cdefBar.c                    ∂
  153.                                     {AllHeaders}
  154.     {68KC} {68KCOptions} "{SrceDir}"cdefBar.c
  155.  
  156. # ------------------------------------------------------------------------------
  157. "{ObjDir}"cdefDtc.c.o            ƒ    "{SrceDir}"cdefDtc.c                    ∂
  158.                                     {AllHeaders}
  159.     {68KC} {68KCOptions} "{SrceDir}"cdefDtc.c
  160.  
  161. # ------------------------------------------------------------------------------
  162. "{ObjDir}"cdefGBox.c.o            ƒ    "{SrceDir}"cdefGBox.c                    ∂
  163.                                     {AllHeaders}
  164.     {68KC} {68KCOptions} "{SrceDir}"cdefGBox.c
  165.  
  166. # ------------------------------------------------------------------------------
  167. "{ObjDir}"cdefHSlider.c.o        ƒ    "{SrceDir}"cdefHSlider.c                ∂
  168.                                     {AllHeaders}
  169.     {68KC} {68KCOptions} "{SrceDir}"cdefHSlider.c
  170.  
  171. # ------------------------------------------------------------------------------
  172. "{ObjDir}"cdefSlider.c.o        ƒ    "{SrceDir}"cdefSlider.c                    ∂
  173.                                     {AllHeaders}
  174.     {68KC} {68KCOptions} "{SrceDir}"cdefSlider.c
  175.  
  176. # ------------------------------------------------------------------------------
  177. "{ObjDir}"cdefSpinner.c.o        ƒ    "{SrceDir}"cdefSpinner.c                ∂
  178.                                     {AllHeaders}
  179.     {68KC} {68KCOptions} "{SrceDir}"cdefSpinner.c
  180.  
  181. # ------------------------------------------------------------------------------
  182. "{ObjDir}"cdefTab.c.o            ƒ    "{SrceDir}"cdefTab.c                    ∂
  183.                                     {AllHeaders}
  184.     {68KC} {68KCOptions} "{SrceDir}"cdefTab.c
  185.  
  186. # ------------------------------------------------------------------------------
  187. "{ObjDir}"cdefTog.c.o            ƒ    "{SrceDir}"cdefTog.c                    ∂
  188.                                     {AllHeaders}
  189.     {68KC} {68KCOptions} "{SrceDir}"cdefTog.c
  190.  
  191. # ------------------------------------------------------------------------------
  192. "{ObjDir}"cdefVSlider.c.o        ƒ    "{SrceDir}"cdefVSlider.c                ∂
  193.                                     {AllHeaders}
  194.     {68KC} {68KCOptions} "{SrceDir}"cdefVSlider.c
  195.  
  196. # ------------------------------------------------------------------------------
  197. "{ObjDir}"colorCDEF.c.o            ƒ    "{SrceDir}"colorCDEF.c                    ∂
  198.                                     {AllHeaders}
  199.     {68KC} {68KCOptions} "{SrceDir}"colorCDEF.c
  200.  
  201. # ------------------------------------------------------------------------------
  202. "{ObjDir}"grayCDEF.c.o            ƒ    "{SrceDir}"grayCDEF.c                    ∂
  203.                                     {AllHeaders}
  204.     {68KC} {68KCOptions} "{SrceDir}"grayCDEF.c
  205.  
  206. # ------------------------------------------------------------------------------
  207. "{ObjDir}"miscCDEF.c.o            ƒ    "{SrceDir}"miscCDEF.c                    ∂
  208.                                     {AllHeaders}
  209.     {68KC} {68KCOptions} "{SrceDir}"miscCDEF.c
  210.  
  211. # ------------------------------------------------------------------------------
  212. "{ObjDir}"qdCDEF.c.o            ƒ    "{SrceDir}"qdCDEF.c                        ∂
  213.                                     {AllHeaders}
  214.     {68KC} {68KCOptions} "{SrceDir}"qdCDEF.c
  215.  
  216.  
  217. # ==============================================================================
  218. #    PowerPC Compilation
  219. # ------------------------------------------------------------------------------
  220. "{ObjDir}"cdef3D.o                ƒ    "{SrceDir}"cdef3D.c                        ∂
  221.                                     {AllHeaders}
  222.     {PPCC} {PPCCOptions} "{SrceDir}"cdef3D.c    -o "{ObjDir}"cdef3D.o
  223.  
  224.  
  225. # ------------------------------------------------------------------------------
  226. "{ObjDir}"cdefBar.o                ƒ    "{SrceDir}"cdefBar.c                    ∂
  227.                                     {AllHeaders}
  228.     {PPCC} {PPCCOptions} "{SrceDir}"cdefBar.c    -o "{ObjDir}"cdefBar.o
  229.  
  230.  
  231. # ------------------------------------------------------------------------------
  232. "{ObjDir}"cdefDtc.o                ƒ    "{SrceDir}"cdefDtc.c                    ∂
  233.                                     {AllHeaders}
  234.     {PPCC} {PPCCOptions} "{SrceDir}"cdefDtc.c    -o "{ObjDir}"cdefDtc.o
  235.  
  236. # ------------------------------------------------------------------------------
  237. "{ObjDir}"cdefGBox.o            ƒ    "{SrceDir}"cdefGBox.c                    ∂
  238.                                     {AllHeaders}
  239.     {PPCC} {PPCCOptions} "{SrceDir}"cdefGBox.c    -o "{ObjDir}"cdefGBox.o
  240.  
  241. # ------------------------------------------------------------------------------
  242. "{ObjDir}"cdefHSlider.o            ƒ    "{SrceDir}"cdefHSlider.c                ∂
  243.                                     {AllHeaders}
  244.     {PPCC} {PPCCOptions} "{SrceDir}"cdefHSlider.c    -o "{ObjDir}"cdefHSlider.o
  245.  
  246.  
  247. # ------------------------------------------------------------------------------
  248. "{ObjDir}"cdefSlider.o            ƒ    "{SrceDir}"cdefSlider.c                    ∂
  249.                                     {AllHeaders}
  250.     {PPCC} {PPCCOptions} "{SrceDir}"cdefSlider.c    -o "{ObjDir}"cdefSlider.o
  251.  
  252. # ------------------------------------------------------------------------------
  253. "{ObjDir}"cdefSpinner.o            ƒ    "{SrceDir}"cdefSpinner.c                ∂
  254.                                     {AllHeaders}
  255.     {PPCC} {PPCCOptions} "{SrceDir}"cdefSpinner.c    -o "{ObjDir}"cdefSpinner.o
  256.  
  257. # ------------------------------------------------------------------------------
  258. "{ObjDir}"cdefTab.o                ƒ    "{SrceDir}"cdefTab.c                    ∂
  259.                                     {AllHeaders}
  260.     {PPCC} {PPCCOptions} "{SrceDir}"cdefTab.c    -o "{ObjDir}"cdefTab.o
  261.  
  262. # ------------------------------------------------------------------------------
  263. "{ObjDir}"cdefTog.o                ƒ    "{SrceDir}"cdefTog.c                    ∂
  264.                                     {AllHeaders}
  265.     {PPCC} {PPCCOptions} "{SrceDir}"cdefTog.c    -o "{ObjDir}"cdefTog.o
  266.  
  267. # ------------------------------------------------------------------------------
  268. "{ObjDir}"cdefVSlider.o            ƒ    "{SrceDir}"cdefVSlider.c                ∂
  269.                                     {AllHeaders}
  270.     {PPCC} {PPCCOptions} "{SrceDir}"cdefVSlider.c    -o "{ObjDir}"cdefVSlider.o
  271.  
  272. # ------------------------------------------------------------------------------
  273. "{ObjDir}"colorCDEF.o            ƒ    "{SrceDir}"colorCDEF.c                    ∂
  274.                                     {AllHeaders}
  275.     {PPCC} {PPCCOptions} "{SrceDir}"colorCDEF.c        -o "{ObjDir}"colorCDEF.o
  276.  
  277. # ------------------------------------------------------------------------------
  278. "{ObjDir}"grayCDEF.o            ƒ    "{SrceDir}"grayCDEF.c                    ∂
  279.                                     {AllHeaders}
  280.     {PPCC} {PPCCOptions} "{SrceDir}"grayCDEF.c        -o "{ObjDir}"grayCDEF.o
  281.  
  282. # ------------------------------------------------------------------------------
  283. "{ObjDir}"miscCDEF.o            ƒ    "{SrceDir}"miscCDEF.c                    ∂
  284.                                     {AllHeaders}
  285.     {PPCC} {PPCCOptions} "{SrceDir}"miscCDEF.c        -o "{ObjDir}"miscCDEF.o
  286.  
  287. # ------------------------------------------------------------------------------
  288. "{ObjDir}"qdCDEF.o                ƒ    "{SrceDir}"qdCDEF.c                        ∂
  289.                                     {AllHeaders}
  290.     {PPCC} {PPCCOptions} "{SrceDir}"qdCDEF.c        -o "{ObjDir}"qdCDEF.o
  291.  
  292.  
  293. # ==============================================================================
  294. #    Linking
  295. # ------------------------------------------------------------------------------
  296. 68KLinkOpts    =    -m MAIN                                                        ∂
  297.                 -ra "{Output}"=0
  298.  
  299.  
  300. # ------------------------------------------------------------------------------
  301. #    68K versions
  302. # ------------------------------------------------------------------------------
  303.  
  304. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  305.     Link        -rt {ResType}=0 -sg "3D Buttons"                            ∂
  306.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  307.                 {68KUtils3} {68KLinkLibs} {68KLinkOpts}                        ∂
  308.                 "{ObjDir}"cdef3D.c.o
  309. # ------------------------------------------------------------------------------
  310. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  311.     Link        -rt {ResType}=1100 -sg "Group Box"                            ∂
  312.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  313.                 {68KUtils3} "{Libraries}"Interface.o {68KLinkOpts}            ∂
  314.                 "{ObjDir}"cdefGBox.c.o                                 
  315. # ------------------------------------------------------------------------------
  316. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  317.     Link         -rt {ResType}=1102 -sg "Spinner"                            ∂
  318.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  319.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  320.                 "{ObjDir}"cdefSpinner.c.o                 
  321. # ------------------------------------------------------------------------------
  322. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  323.     Link         -rt {ResType}=1103 -sg "Date & Time"                        ∂
  324.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  325.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  326.                 "{ObjDir}"cdefDtc.c.o                 
  327. # ------------------------------------------------------------------------------
  328. "{Output}"    ƒƒ    Makefile "{ObjDir}"cdefTog.c.o {68KUtils3}
  329.     Link         -rt {ResType}=1104 -sg "Tog Button"                            ∂
  330.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  331.                 {68KUtils3} {68KLinkLibs} {68KLinkOpts}                        ∂
  332.                 "{ObjDir}"cdefTog.c.o                 
  333. # ------------------------------------------------------------------------------
  334. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  335.     Link         -rt {ResType}=1105 -sg "HSlider"                            ∂
  336.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  337.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  338.                 "{ObjDir}"cdefHSlider.c.o             
  339. # ------------------------------------------------------------------------------
  340. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  341.     Link         -rt {ResType}=1106 -sg "VSlider"                            ∂
  342.                 -t {Type} -c {Creator}  -o {Targ}                            ∂
  343.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  344.                 "{ObjDir}"cdefVSlider.c.o                 
  345. # ------------------------------------------------------------------------------
  346. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils2}
  347.     Link         -rt {ResType}=1108 -sg "Progress Bar"                        ∂
  348.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  349.                  {68KUtils2} {68KLinkLibs} {68KLinkOpts}                     ∂
  350.                 "{ObjDir}"cdefBar.c.o    
  351. # ------------------------------------------------------------------------------
  352. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  353.     Link         -rt {ResType}=1109 -sg "Tab Panel"                            ∂
  354.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  355.                  {68KUtils3} {68KLinkLibs} {68KLinkOpts}                    ∂
  356.                 "{ObjDir}"cdefTab.c.o                     
  357. # ------------------------------------------------------------------------------
  358. "{Output}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  359.     Link         -rt {ResType}=1110 -sg "Slider"                            ∂
  360.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  361.                  {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  362.                 "{ObjDir}"cdefSlider.c.o     
  363.     Rename -y "{Output}" "{Output}".rsrc            
  364.  
  365. # ------------------------------------------------------------------------------
  366. #    Fat versions - 68K
  367. # ------------------------------------------------------------------------------
  368.  
  369. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  370.     Link        -rt {68KType}=0 -sg "3D Buttons"                            ∂
  371.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  372.                 {68KUtils3} {68KLinkLibs} {68KLinkOpts}                        ∂
  373.                 "{ObjDir}"cdef3D.c.o
  374. # ------------------------------------------------------------------------------
  375. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  376.     Link        -rt {68KType}=1100 -sg "Group Box"                            ∂
  377.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  378.                 {68KUtils3} "{Libraries}"Interface.o {68KLinkOpts}            ∂
  379.                 "{ObjDir}"cdefGBox.c.o
  380. # ------------------------------------------------------------------------------
  381. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  382.     Link        -rt {68KType}=1102 -sg "Spinner"                            ∂
  383.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  384.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  385.                 "{ObjDir}"cdefSpinner.c.o
  386. # ------------------------------------------------------------------------------
  387. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  388.     Link        -rt {68KType}=1103 -sg "Date & Time"                        ∂
  389.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  390.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  391.                 "{ObjDir}"cdefDtc.c.o
  392. # ------------------------------------------------------------------------------
  393. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  394.     Link        -rt {68KType}=1104 -sg "Tog Button"                            ∂
  395.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  396.                  {68KUtils3} {68KLinkLibs} {68KLinkOpts}                    ∂
  397.                 "{ObjDir}"cdefTog.c.o
  398. # ------------------------------------------------------------------------------
  399. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  400.     Link        -rt {68KType}=1105 -sg "HSlider"                            ∂
  401.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  402.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  403.                 "{ObjDir}"cdefHSlider.c.o
  404. # ------------------------------------------------------------------------------
  405. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  406.     Link        -rt {68KType}=1106 -sg "VSlider"                            ∂
  407.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  408.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  409.                 "{ObjDir}"cdefVSlider.c.o
  410. # ------------------------------------------------------------------------------
  411. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils2}
  412.     Link        -rt {68KType}=1108 -sg "Progress Bar"                        ∂
  413.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  414.                 {68KUtils2} {68KLinkLibs} {68KLinkOpts}                        ∂
  415.                 "{ObjDir}"cdefBar.c.o
  416. # ------------------------------------------------------------------------------
  417. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils3}
  418.     Link        -rt {68KType}=1109 -sg "Tab Panel"                            ∂
  419.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  420.                 {68KUtils3} {68KLinkLibs} {68KLinkOpts}                        ∂
  421.                 "{ObjDir}"cdefTab.c.o
  422. # ------------------------------------------------------------------------------
  423. "{OutRsrc}"    ƒƒ    Makefile {68KObjects} {68KUtils}
  424.     Link         -rt {68KType}=1110 -sg "Slider"                            ∂
  425.                 -t {Type} -c {Creator} -o {Targ}                             ∂
  426.                 {68KUtils} {68KLinkLibs} {68KLinkOpts}                        ∂
  427.                 "{ObjDir}"cdefSlider.c.o
  428.  
  429. # ------------------------------------------------------------------------------
  430. #    Fat versions - PowerPC
  431. # ------------------------------------------------------------------------------
  432.  
  433. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils3}
  434.     PPCLink -warn -main main                                                 ∂
  435.             "{ObjDir}"cdef3D.o {PPCUtils3} {PPCLinkLibs}                    ∂
  436.             -o "{XcoffDir}"cdef3D.xcoff
  437.     makepef -b "{XcoffDir}"cdef3D.xcoff -o "{PefDir}"cdef3D.pef {PPCPefLibs}
  438.     echo "read ∂'pCod∂' (0) ∂"{PefDir}cdef3D.pef∂";" | rez -a -o "{OutRsrc}"
  439. # ------------------------------------------------------------------------------
  440. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils3}
  441.     PPCLink -warn -main main                                                 ∂
  442.             "{ObjDir}"cdefGBox.o {PPCUtils3} {PPCLinkLibs}                    ∂
  443.             -o "{XcoffDir}"cdefGBox.xcoff
  444.     makepef -b "{XcoffDir}"cdefGBox.xcoff -o "{PefDir}"cdefGBox.pef {PPCPefLibs}
  445.     echo "read ∂'pCod∂' (1100) ∂"{PefDir}cdefGBox.pef∂";" | rez -a -o "{OutRsrc}"
  446. # ------------------------------------------------------------------------------
  447. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils}
  448.     PPCLink -warn -main main                                                 ∂
  449.             "{ObjDir}"cdefSpinner.o {PPCUtils} {PPCLinkLibs}                ∂
  450.             -o "{XcoffDir}"cdefSpinner.xcoff
  451.     makepef -b "{XcoffDir}"cdefSpinner.xcoff -o "{PefDir}"cdefSpinner.pef {PPCPefLibs}
  452.     echo "read ∂'pCod∂' (1102) ∂"{PefDir}cdefSpinner.pef∂";" | rez -a -o "{OutRsrc}"
  453. # ------------------------------------------------------------------------------
  454. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils}
  455.     PPCLink -warn -main main                                                 ∂
  456.             "{ObjDir}"cdefDtc.o {PPCUtils} {PPCLinkLibs}                    ∂
  457.             -o "{XcoffDir}"cdefDtc.xcoff
  458.     makepef -b "{XcoffDir}"cdefDtc.xcoff -o "{PefDir}"cdefDtc.pef {PPCPefLibs}
  459.     echo "read ∂'pCod∂' (1103) ∂"{PefDir}cdefDtc.pef∂";" | rez -a -o "{OutRsrc}"
  460. # ------------------------------------------------------------------------------
  461. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils3}
  462.     PPCLink -warn -main main                                                 ∂
  463.             "{ObjDir}"cdefTog.o {PPCUtils3} {PPCLinkLibs}                    ∂
  464.             -o "{XcoffDir}"cdefTog.xcoff
  465.     makepef -b "{XcoffDir}"cdefTog.xcoff -o "{PefDir}"cdefTog.pef {PPCPefLibs}
  466.     echo "read ∂'pCod∂' (1104) ∂"{PefDir}cdefTog.pef∂";" | rez -a -o "{OutRsrc}"
  467. # ------------------------------------------------------------------------------
  468. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils}
  469.     PPCLink -warn -main main                                                 ∂
  470.             "{ObjDir}"cdefHSlider.o {PPCUtils} {PPCLinkLibs}                ∂
  471.             -o "{XcoffDir}"cdefHSlider.xcoff
  472.     makepef -b "{XcoffDir}"cdefHSlider.xcoff -o "{PefDir}"cdefHSlider.pef {PPCPefLibs}
  473.     echo "read ∂'pCod∂' (1105) ∂"{PefDir}cdefHSlider.pef∂";" | rez -a -o "{OutRsrc}"
  474. # ------------------------------------------------------------------------------
  475. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils}
  476.     PPCLink -warn -main main                                                 ∂
  477.             "{ObjDir}"cdefVSlider.o {PPCUtils} {PPCLinkLibs}                ∂
  478.             -o "{XcoffDir}"cdefVSlider.xcoff
  479.     makepef -b "{XcoffDir}"cdefVSlider.xcoff -o "{PefDir}"cdefVSlider.pef {PPCPefLibs}
  480.     echo "read ∂'pCod∂' (1106) ∂"{PefDir}cdefVSlider.pef∂";" | rez -a -o "{OutRsrc}"
  481. # ------------------------------------------------------------------------------
  482. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils2}
  483.     PPCLink -warn -main main                                                 ∂
  484.             "{ObjDir}"cdefBar.o {PPCUtils2} {PPCLinkLibs}                    ∂
  485.             -o "{XcoffDir}"cdefBar.xcoff
  486.     makepef -b "{XcoffDir}"cdefBar.xcoff -o "{PefDir}"cdefBar.pef {PPCPefLibs}
  487.     echo "read ∂'pCod∂' (1108) ∂"{PefDir}cdefBar.pef∂";" | rez -a -o "{OutRsrc}"
  488. # ------------------------------------------------------------------------------
  489. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils3}
  490.     PPCLink -warn -main main                                                 ∂
  491.             "{ObjDir}"cdefTab.o {PPCUtils3} {PPCLinkLibs}                    ∂
  492.             -o "{XcoffDir}"cdefTab.xcoff
  493.     makepef -b "{XcoffDir}"cdefTab.xcoff -o "{PefDir}"cdefTab.pef {PPCPefLibs}
  494.     echo "read ∂'pCod∂' (1109) ∂"{PefDir}cdefTab.pef∂";" | rez -a -o "{OutRsrc}"
  495. # ------------------------------------------------------------------------------
  496. "{OutRsrc}"    ƒƒ    Makefile {PPCObjects} {PPCUtils}
  497.     PPCLink -warn -main main                                                 ∂
  498.             "{ObjDir}"cdefSlider.o {PPCUtils} {PPCLinkLibs}                    ∂
  499.             -o "{XcoffDir}"cdefSlider.xcoff
  500.     makepef -b "{XcoffDir}"cdefSlider.xcoff -o "{PefDir}"cdefSlider.pef {PPCPefLibs}
  501.     echo "read ∂'pCod∂' (1110) ∂"{PefDir}cdefSlider.pef∂";" | rez -a -o "{OutRsrc}"
  502.  
  503. # ------------------------------------------------------------------------------
  504. #    Put the versions together in a fat binary WDEF
  505. # ------------------------------------------------------------------------------
  506.  
  507. "{PPCOut}"    ƒ    Makefile {OutRsrc}
  508.     rez cdefMPW.r -a -o {Targ}
  509.     setfile -t {Type} -c {Creator} {Targ}
  510.     Delete "{OutRsrc}"        # delete the work file
  511.     Rename -y "{PPCOut}" "{PPCOut}".rsrc
  512. # ------------------------------------------------------------------------------
  513.